Classifier

Use the Classifier tool to identify and classify the objects in your images. Once trained, the tool returns a predicted class and a confidence score for unseen images.

The Classifier tool can perform tasks such as:

  • Classifying objects or scenes

  • Separating different classes based on a collection of labeled images

  • Identifying products based on their packaging

  • Classifying the quality of welding seams

  • Separating acceptable or unacceptable anomalies

To set up the Classifier tool:

  1. ROI The Region of Interest (ROI) is the area of the image where the vision tool operates.: Set the ROI to create Views The area of the image that the device operates on is called a view. A view can be the entire image, a user-defined rectangular area of the image, or the output of a tool, depending on the tool. from your images.

  2. Label: Create classes with the Add button. Label your Views with the classes.

  3. Train: Select the Training Mode you want to train. Set training parameters. Assign roles manually or automatically to Views to determine how the Views are processed.

  4. Process: Click Process All.

    When processing finishes, the results panel shows detailed statistics about the results of the tool.

How to label with the Classifier tool

In the Label step, create your classes and assign them to views:

  1. Create classes with the Add button.

  2. Label your views. You can label several images at the same time by selecting them. To label a view as a certain class:

    1. Select the view in the browser.

    2. Click the corresponding label in the LabelingLabeling is the process of marking features or defects in images, or categorizing the images into classes. Labeling is crucial for training Deep Learning Lite and Deep Learning Standard tools because the labels serve as training material to guide the tools how to function correctly. Options.

    Labeled views have a colored graphical mark in the upper left corner that shows the assigned class.

How to train the Classifier tool

After the Label step, proceed to the Train step to train the model.

  1. Select a Training Mode:

    • Deep Learning Lite - Few Sample (Default): Optimized for standardized objects. Requires only a few images to train.

    • Deep Learning Lite - Accurate: Optimized for rotated and scaled objects. Requires more images to train.

  2. Adjust the training parameters as needed.

  3. To auto-assign roles to images, click Auto-Assign Roles. A pop-up window provides you with options for how to assign roles:

    See the Label section for more information.

How to verify the accuracy of the Classifier tool trained model

After clicking Process All in the Process step, the tool provides the following in the results panel:

  • Detailed statistics about the performance of the tool in the panel on the right side of the window.

  • Graphical markings in the upper left corner of the views:

    Number Name Description
    1 Assigned Label The label you set for the view in the label step.
    2 Prediction Label The label prediction after the process is complete. The percentage indicates the level of confidence the tool has in its predicted label.
    3 Role The role that you either manually assigned or auto-assigned. For information on role assignments, see Train.

Review the statistics and metrics that OneVision returns in the right-side panel:

For information on how to read the tables and diagrams, see Metrics and Statistics.

How to use the Classifier tool with other AI tools

You can use the Classifier tool flexibly as part of a toolchainContains a group of tools and the sequence of execution for each tool.. For example:

  • The Classifier tool can pass images of a class to a Segmenter tool for further inspection.

  • The Classifier tool can pass images of a class to a Locator tool to count features.

  • The Classifier tool can take images from a Segmenter tool to classify the types of defects.